package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.BProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.request.ProjectRequest;
import com.ruoyi.system.domain.vo.BProjectVo;
import com.ruoyi.system.domain.vo.BUserVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author yangxingze
* @description 针对表【b_project(项目表)】的数据库操作Mapper
* @createDate 2024-12-28 00:45:04
* @Entity com.ruoyi.system.domain.BProject
*/
public interface BProjectMapper extends BaseMapper<BProject> {

    /**
     * 分页获取所属任务的项目列表
     * @param query
     * @return
     */
    List<BProjectVo> queryPage(@Param("query") ProjectRequest query);

    /**
     * 根据药企获取用户列表
     * @param companyIds
     * @return
     */
    List<BUserVo> selectUserListByCompanyIds(Long[] companyIds);

    List<BProjectVo> selectProjectList(@Param("query") BProject project);

    BProjectVo selectProjectById(@Param("projectId") Long id);

    int deleteProjectByIds(Long[] projectIds);
}




